import _axios from '@/plugins/axios';
import {getParamsStr} from "../utils";


class User {
	userLogin(params) {
		let str = getParamsStr(params);
		return _axios.post('small4/user/m/login?deviceId=007&deviceName=monkey&' + str)
	}

	getMobileCode(params) {
		let str = getParamsStr(params);
		return _axios.post('small4/verification/sms/get?' + str)
	}

	userRegister(params) {
		let str = getParamsStr(params);
		return _axios.post('small4/user/m/register?' + str);
	}

	getUserDetail(token) {
		return _axios.post('small4/user/detail?token=' + token);
	}
}

export default User;
